Skip to content

Conversation

djoshy
Copy link
Contributor

@djoshy djoshy commented Oct 21, 2025

This PR adds 6 CR tests(2 per platform for AWS, GCP and Azure) for CPMS boot image updates to the MCO's extended test suite.

The first test verifies the "All" mode for ControlPlaneMachineSets. As the CPMS resource is a singleton, this mode effectively enables control plane boot image updates for the whole cluster. The test then checks that an update takes place by backdating the boot image and examining the CPMS resource. If the MCO has updated it correctly, the test then proceeds to verify the scale-up process by deleting an existing control plane machine. This last step can take a while as while a new node does scale-up and join the cluster quickly, the CPMS operator only proceeds to scale-down the old node after that. I think this is to maintain etcd quorum. Draining and deleting the old control plane node at the end of the test takes a while - the whole test seemed to vary between 15-20 minutes depending on the platform.

The second test verifies "None" mode for ControlPlaneMachinesets. This test is a lot more simpler than the first; it just checks if the backdated boot image does get updated by the MCO. The test is considered successful if the backdated boot image is left untouched.

This PR should not need QE verification since it is not affecting any functions of the MCO, it only adds new tests.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 21, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 21, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 21, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 21, 2025

@djoshy: This pull request references MCO-1930 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

This PR adds 6 CR tests(2 per platform for AWS, GCP and Azure) for CPMS boot image updates to the MCO's extended test suite.

The first test verifies the "All" mode for ControlPlaneMachineSets. As the CPMS resource is a singleton, this mode efficiently enables boot image updates for the whole cluster. The test then verifies that an update takes place by backdating the boot image and examining the CPMS resource. If the MCO has updated it correctly, the test then proceeds to verify the scale-up process by deleting an existing control plane machine. This last step can take a while as while a new node does scale-up and join the cluster quickly, the CPMS operator only proceeds to scale-down the old node after that. I think this is to maintain etcd quorum. Draining and deleting the old control plane node at the end of the test takes a while - the whole test seemed to vary between 15-20 minutes depending on the platform.

The second test verifies "None" mode for ControlPlaneMachinesets. This test is a lot more simpler than the first; it just checks if the backdated boot image does get updated by the MCO. The test is considered successful if the backdated boot image is left untouched.

This PR is based on #5332, which should merge soon. Only the last commit is relevant to this PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: djoshy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 21, 2025
@djoshy
Copy link
Contributor Author

djoshy commented Oct 21, 2025

/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-azure-mco-disruptive-techpreview
/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-aws-mco-disruptive-techpreview
/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-gcp-mco-disruptive-techpreview

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 21, 2025

@djoshy: trigger 3 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-azure-mco-disruptive-techpreview
  • periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-aws-mco-disruptive-techpreview
  • periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-gcp-mco-disruptive-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/b16822a0-aeb9-11f0-9274-c273f7924613-0

@djoshy djoshy force-pushed the add-cpms-support-tests branch from 8afa685 to 82dbc48 Compare October 22, 2025 13:08
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 22, 2025

@djoshy: This pull request references MCO-1930 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

This PR adds 6 CR tests(2 per platform for AWS, GCP and Azure) for CPMS boot image updates to the MCO's extended test suite.

The first test verifies the "All" mode for ControlPlaneMachineSets. As the CPMS resource is a singleton, this mode efficiently enables boot image updates for the whole cluster. The test then verifies that an update takes place by backdating the boot image and examining the CPMS resource. If the MCO has updated it correctly, the test then proceeds to verify the scale-up process by deleting an existing control plane machine. This last step can take a while as while a new node does scale-up and join the cluster quickly, the CPMS operator only proceeds to scale-down the old node after that. I think this is to maintain etcd quorum. Draining and deleting the old control plane node at the end of the test takes a while - the whole test seemed to vary between 15-20 minutes depending on the platform.

The second test verifies "None" mode for ControlPlaneMachinesets. This test is a lot more simpler than the first; it just checks if the backdated boot image does get updated by the MCO. The test is considered successful if the backdated boot image is left untouched.

This PR should not need QE verification since it is not affecting functions of the MCO, only test code.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@djoshy
Copy link
Contributor Author

djoshy commented Oct 22, 2025

/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-azure-mco-disruptive-techpreview
/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-aws-mco-disruptive-techpreview
/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-gcp-mco-disruptive-techpreview

/verified bypass

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 22, 2025
@openshift-ci-robot
Copy link
Contributor

@djoshy: The verified label has been added.

In response to this:

/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-azure-mco-disruptive-techpreview
/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-aws-mco-disruptive-techpreview
/payload-job periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-gcp-mco-disruptive-techpreview

/verified bypass

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 22, 2025

@djoshy: trigger 3 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-azure-mco-disruptive-techpreview
  • periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-aws-mco-disruptive-techpreview
  • periodic-ci-openshift-machine-config-operator-release-4.21-periodics-e2e-gcp-mco-disruptive-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/f11d0650-af49-11f0-8392-3a174395e733-0

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 22, 2025

@djoshy: This pull request references MCO-1930 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

This PR adds 6 CR tests(2 per platform for AWS, GCP and Azure) for CPMS boot image updates to the MCO's extended test suite.

The first test verifies the "All" mode for ControlPlaneMachineSets. As the CPMS resource is a singleton, this mode effectively enables control plane boot image updates for the whole cluster. The test then verifies that an update takes place by backdating the boot image and examining the CPMS resource. If the MCO has updated it correctly, the test then proceeds to verify the scale-up process by deleting an existing control plane machine. This last step can take a while as while a new node does scale-up and join the cluster quickly, the CPMS operator only proceeds to scale-down the old node after that. I think this is to maintain etcd quorum. Draining and deleting the old control plane node at the end of the test takes a while - the whole test seemed to vary between 15-20 minutes depending on the platform.

The second test verifies "None" mode for ControlPlaneMachinesets. This test is a lot more simpler than the first; it just checks if the backdated boot image does get updated by the MCO. The test is considered successful if the backdated boot image is left untouched.

This PR should not need QE verification since it is not affecting functions of the MCO, only test code.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 22, 2025

@djoshy: This pull request references MCO-1930 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

This PR adds 6 CR tests(2 per platform for AWS, GCP and Azure) for CPMS boot image updates to the MCO's extended test suite.

The first test verifies the "All" mode for ControlPlaneMachineSets. As the CPMS resource is a singleton, this mode effectively enables control plane boot image updates for the whole cluster. The test then checks that an update takes place by backdating the boot image and examining the CPMS resource. If the MCO has updated it correctly, the test then proceeds to verify the scale-up process by deleting an existing control plane machine. This last step can take a while as while a new node does scale-up and join the cluster quickly, the CPMS operator only proceeds to scale-down the old node after that. I think this is to maintain etcd quorum. Draining and deleting the old control plane node at the end of the test takes a while - the whole test seemed to vary between 15-20 minutes depending on the platform.

The second test verifies "None" mode for ControlPlaneMachinesets. This test is a lot more simpler than the first; it just checks if the backdated boot image does get updated by the MCO. The test is considered successful if the backdated boot image is left untouched.

This PR should not need QE verification since it is not affecting functions of the MCO, only test code.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 22, 2025

@djoshy: This pull request references MCO-1930 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

This PR adds 6 CR tests(2 per platform for AWS, GCP and Azure) for CPMS boot image updates to the MCO's extended test suite.

The first test verifies the "All" mode for ControlPlaneMachineSets. As the CPMS resource is a singleton, this mode effectively enables control plane boot image updates for the whole cluster. The test then checks that an update takes place by backdating the boot image and examining the CPMS resource. If the MCO has updated it correctly, the test then proceeds to verify the scale-up process by deleting an existing control plane machine. This last step can take a while as while a new node does scale-up and join the cluster quickly, the CPMS operator only proceeds to scale-down the old node after that. I think this is to maintain etcd quorum. Draining and deleting the old control plane node at the end of the test takes a while - the whole test seemed to vary between 15-20 minutes depending on the platform.

The second test verifies "None" mode for ControlPlaneMachinesets. This test is a lot more simpler than the first; it just checks if the backdated boot image does get updated by the MCO. The test is considered successful if the backdated boot image is left untouched.

This PR should not need QE verification since it is not affecting any functions of the MCO, it only adds new tests.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants